package com.ruoyi.school.runnables;

import com.ruoyi.school.domain.SchoolTdx;
import com.ruoyi.school.mapper.SchoolTdxMapper;
import java.util.List;

/**
 * @author zhaoYuFei
 */
public class ExcelInsertRunnable implements Runnable{
    private List<SchoolTdx> list;
    private SchoolTdxMapper schoolTdxMapper;

    public ExcelInsertRunnable() {
    }

    public ExcelInsertRunnable(List<SchoolTdx> list, SchoolTdxMapper schoolTdxMapper) {
        this.list = list;
        this.schoolTdxMapper = schoolTdxMapper;
    }

    @Override
    public void run() {
        schoolTdxMapper.insertSchoolTdxList(list);
    }
}
